import Login from './views/Login.vue'
import Register from './views/Register'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/pethome/Department.vue'
import Employee from "./views/pethome/Employee";
import User from "./views/pethome/User";
import Shop from "./views/pethome/Shop";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/toRegister',
        component: Register,
        name: '店铺入驻',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '组织管理',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            { path: '/Department', component: Department, name: '部门管理' },
            { path: '/Employee', component: Employee, name: '员工管理' },
            { path: '/User', component: User, name: '用户管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '店铺审核',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            { path: '/Shop', component: Shop, name: '店铺审核' },

        ]
    },

    /*{
        path: '/',
        component: Home,
        name: '宠物寻主',
        iconCls: 'el-icon-chicken',
        children: [
            { path: '/PetSearchMaster', component: PetSearchMaster, name: '寻主审核' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单管理',
        iconCls: 'el-icon-s-order',
        children: [
            { path: '/PetSearchMaster2', component: PetSearchMaster, name: '寻主审核2' },
        ]
    },*/
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;